package com.example.qiangdan.redisson;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author
 */
@ConfigurationProperties(prefix = "redisson")
@Data
public class RedissonProperties {

	private int timeout = 3000;

	private String address;

	private String password;

	private int connectionPoolSize = 64;

	private int connectionMinimumIdleSize = 10;

	private int slaveConnectionPoolSize = 250;

	private int masterConnectionPoolSize = 250;

	/**
	 * 哨兵
	 */
	private String[] sentinelAddresses;

	private String masterName;
	
	/**
	 * 主从
	 */
	private String masterAddress;
	
	private String[] slaveAddresses;

}
